package com.gameapplet.cash.service.Impl;

import com.gameapplet.cash.dao.IBillDao;
import com.gameapplet.cash.model.Bill;
import com.gameapplet.cash.service.IBillService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("billService")
public class BillServiceImpl implements IBillService {

    @Resource(name = "billDao")
    IBillDao billDao;

    @Override
    public Bill selectBillByBillid(String billid) {
        return billDao.selectBillByBillid(billid);
    }

    @Override
    public int insertBill(Bill bill) {
        return billDao.insertBill(bill);
    }

    @Override
    public List<Bill> selectBillByOpenid(String openid) {
        return billDao.selectBillByOpenid(openid);
    }
}
